package eteam.aps.controller;

import eteam.aps.common.R;
import eteam.aps.common.exceptions.AuthException;
import eteam.aps.model.vo.ParamFromWindowingVo;
import eteam.aps.model.vo.UserVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 用户控制器
 *
 * @author WMT
 */
public interface IUserController {

    @PostMapping("/user/orgList")
    R<List<ParamFromWindowingVo>> orgList() throws Exception, AuthException;

    @PostMapping("/user/userList")
    R<List<UserVo>> userList(@RequestParam(value = "fullName",required = false) String fullName) throws Exception, AuthException;
}
